<?php echo $this->render('user/head.phtml');?>
<script src="/static/js/jquery-validate/jquery.validate.js">
</script>
    <script type="text/javascript">
    $().ready(function(){
	$("#chg-passwd-form").validate({
	    rules:{
		passwd: "required",
		new_passwd:  {
		    required: true,
		    minlength: 6
		},
		renew_passwd: {
		    required: true,
		    minlength: 6,
		    equalTo: "#new_passwd"
		}
	    },
	    messages:{
		passwd: "请输入原始密码",
		new_passwd:  {
		    required: "请输入新密码",
		    minlength: "新密码要6-12位"
		},
		renew_passwd: {
		    required: "请再输一次新密码",
		    minlength: "新密码要6-12位",
		    equalTo: "新密码不一致"
		}
	    }
	});
    });
</script>
    <form action='?' method='post' id="chg-passwd-form"/>
    <table id='table_profile' class="user_table left">
      <tr>
	<td class="td_desc">现在密码：</td>
	<td><input class="chgpasswd-input" type="password" name="passwd"/></td>
      </tr>
      <tr>
	<td class="td_desc">新密码：</td>
	<td><input class="chgpasswd-input" type="password" id="new_passwd" name="new_passwd" /></td>
      </tr>
      <tr>
	<td class="td_desc">重复新密码：</td>
	<td><input class="chgpasswd-input" type="password" name="renew_passwd" /></td>
      </tr>
      <tr>
	<td>
	</td>
	<td>
	  <?php echo $this->error;?>
	</td>
      </tr>
      <tr>
	<td></td>
	<td><input class="profile-input" type="submit" value="提交" /></td>
      </tr>
    </table>
</form>
<?php echo $this->render('user/foot.phtml');?>
